﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _11._2
{
    internal class Animals:CollectionBase
    {
        public void Add(Animal newA)=>List.Add(newA);

        public void Remov(Animal newB)=>List.Remove(newB);

        public Animal this[int i]
        {
            get { return (Animal)List[i]; }
            set { List[i] = value; }
        }
    }
}
